You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'val['suggestion'] '') AND p.p_id=ps.product_id order by p.pageviews desc' at line 1